<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/system/dept.js"></script>
</head>
<body>
    <%--工具栏--%>
    <div id="dept_toolbar">
        <shiro:hasPermission name="dept:add">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="add">添加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="dept:edit">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="edit">编辑</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="dept:delete">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="remove">删除</a>
        </shiro:hasPermission>

        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="reload">刷新</a>
        <input type="text" name="keyword" style="width: 200px; height: 30px;padding-left: 5px;">
        <a class="easyui-linkbutton" iconCls="icon-search" id="searchbtn">查询</a>
    </div>

    <table id="dept_tree_grid" style="width:600px;height:400px"></table>

    <%--部门对话框--%>
    <div id="dept_dialog">
        <form id="deptForm">
            <%--添加一个隐藏域--%>
            <input type="hidden" name="id">
            <table align="center" style="border-spacing: 0px 10px">
                <tr>
                    <td>名称:</td>
                    <td><input id="text" name="text" /></td>
                    <td>上级部门:</td>
                    <td><input id="pid" name="pid" /></td>
                </tr>
            </table>
        </form>

    </div>
</body>
</html>
